#include "ReadHistory.h"

//(*InternalHeaders(ReadHistory)
#include <wx/intl.h>
#include <wx/string.h>
//*)

//(*IdInit(ReadHistory)
const long ReadHistory::ID_LISTCTRL1 = wxNewId();
const long ReadHistory::ID_DATEPICKERCTRL1 = wxNewId();
const long ReadHistory::ID_TEXTCTRL1 = wxNewId();
const long ReadHistory::ID_BUTTON1 = wxNewId();
const long ReadHistory::ID_BUTTON2 = wxNewId();
const long ReadHistory::ID_BUTTON3 = wxNewId();
//*)

BEGIN_EVENT_TABLE(ReadHistory,wxDialog)
	//(*EventTable(ReadHistory)
	//*)
END_EVENT_TABLE()

ReadHistory::ReadHistory(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(*Initialize(ReadHistory)
	Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
	SetClientSize(wxSize(365,485));
	Move(wxDefaultPosition);
	ListCtrl1 = new wxListCtrl(this, ID_LISTCTRL1, wxPoint(16,24), wxSize(320,264), wxLC_REPORT|wxLC_EDIT_LABELS|wxSUNKEN_BORDER|wxVSCROLL, wxDefaultValidator, _T("ID_LISTCTRL1"));
	DatePickerCtrl1 = new wxDatePickerCtrl(this, ID_DATEPICKERCTRL1, wxDefaultDateTime, wxPoint(24,328), wxSize(200,28), wxDP_DEFAULT|wxDP_SHOWCENTURY, wxDefaultValidator, _T("ID_DATEPICKERCTRL1"));
	TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, _("Text"), wxPoint(240,328), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
	Button1 = new wxButton(this, ID_BUTTON1, _("提交"), wxPoint(24,416), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
	Button2 = new wxButton(this, ID_BUTTON2, _("关闭"), wxPoint(232,416), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON2"));
	Button3 = new wxButton(this, ID_BUTTON3, _("删除"), wxPoint(120,416), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON3"));
	
	Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&ReadHistory::OnAddHistory);
	Connect(ID_BUTTON2,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&ReadHistory::OnClose);
	Connect(ID_BUTTON3,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&ReadHistory::OnDeleteHistory);
	//*)
}

ReadHistory::~ReadHistory()
{
	//(*Destroy(ReadHistory)
	//*)
}


void ReadHistory::OnAddHistory(wxCommandEvent& event)
{
}

void ReadHistory::OnClose(wxCommandEvent& event)
{
    this->Show(false);
}

void ReadHistory::OnDeleteHistory(wxCommandEvent& event)
{
}
